//
//  YYModel.swift
//  YYProject
//
//  Created by 陆文宇 on 2017/8/28.
//  Copyright © 2017年 陆文宇. All rights reserved.
//

import UIKit

class YYModel: NSObject {
    
    final var yy_data: [String : Any]! {
        didSet {
            setValuesForKeys(yy_data)
        }
    }
    init(data: [String : Any]) {
        yy_data = data
        super.init()
        
        setValuesForKeys(yy_data)
    }
    
    override func setValuesForKeys(_ keyedValues: [String : Any]) {
        super.setValuesForKeys(keyedValues)
    }
    
    override func setValue(_ value: Any?, forKey key: String) {
        super.setValue(value, forKey: key)
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
}
